package com.itheima.day06;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class Demo8 {
    public static void main(String[] args) {
        String s="hemaddde";

        char[] chars = s.toCharArray();
        Character[] chars1={'c','d'};


        System.out.println(Arrays.toString(chars));
        System.out.println("--------");



        int[] ints={1,2,3};
        int asInt = Arrays.stream(ints)
                .max()
                .getAsInt();
        System.out.println("toString = " + asInt);

//        System.out.println("list = " + list);
        System.out.println("-------");
        LocalDateTime now = LocalDateTime.now();
        System.out.println("now = " + now);
        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        String format = dtf.format(now);
        System.out.println("format = " + format);


    }
}
